 <br><br>
    <br><br>
    <br><br>
    
    
<div class="container">

    <div class="row">
                <div class="col-md-offset-2 col-md-8">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h3>Upload Notes</h3>
                        </div>
                         <?php foreach($records as $row) { ?>
                        <div class="panel-body">
                           
                             <form action="  <?php echo site_url('members/update_note'); ?>" method="post"  enctype="multipart/form-data"> 
                        <label>Notes Title:<input name="title" value="<?php echo $row->note_title; ?>"  type="text" class="form-control" height="100px" value=""/></label>
                        
                        <br>

                         <label> Faculty:
                                <select name="faculty" class="form-control" data-style="btn-default">
                                    <option  <?php if($row->faculty=="FOIT"){echo "selected='selected'";}  ?>>FOIT</option>
                                    <option  <?php if($row->faculty=="FOEE"){echo "selected='selected'";}  ?> >FOEE</option>
                                    <option <?php if($row->faculty=="FOCM"){echo "selected='selected'";}  ?>>FOCM</option>
                                </select>
                          </label>
                          
                          <br>

                         <label>Semester:
                                <select name="semester"  class="form-control" data-style="btn-default">
                                    <option <?php if($row->semester=="1st"){echo "selected='selected'";}  ?> >1st</option>
                                    <option <?php if($row->semester=="2nd"){echo "selected='selected'";}  ?> >2nd</option>
                                    <option <?php if($row->semester=="3rd"){echo "selected='selected'";}  ?> >3rd</option>
                                    <option <?php if($row->semester=="4th"){echo "selected='selected'";}  ?> >4th</option>
                                    <option <?php if($row->semester=="5th"){echo "selected='selected'";}  ?> >5th</option>
                                    <option <?php if($row->semester=="6th"){echo "selected='selected'";}  ?> >6th</option>
                                    <option <?php if($row->semester=="7th"){echo "selected='selected'";}  ?> >7th</option>
                                    <option <?php if($row->semester=="8th"){echo "selected='selected'";}  ?> >8th</option>
                                </select>
                          </label>
                          
                          <br>
                          
                          <label>Author/Teacher:<input name="teacher" value="<?php echo $row->author; ?>" type="text" class="form-control" height="100px"/></label>
                          
                          <br>
                          
                          <label>Upload File:<input  type="file" name="userfile" /></label>
                          
                          <br>
                          
                          <label>Discription<textarea name="discription" value="<?php echo $row->disc; ?>"  class="form-control"></textarea></label>
                          <br>
                                  <input type="hidden" value="<?php echo $row->notes_id; ?>"  name="notes_id">
                          
                          <label><input type="submit" value="Upload"  class="btn btn-default"></label>                          
                    </form>
                          <?php } ?>
                              </div>
                             
                            </div>
                        </div>
                        
                    </div><!--End of Inbox Div -->
                </div>
                 
    
 
    
    
    <br><br>
    <br><br>
    <br><br>